package com.example.service;

import com.example.entity.Student;
import com.example.mapper.StudentMapper;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

@Service
@Transactional
public class StudentService {
    @Resource
    private StudentMapper studentMapper;

    public void insertStudentsFromExcel(List<Student> studentList) {
        studentMapper.insertStudents(studentList);
    }

    // 其他方法类似实现
}
